#ifndef __DS18B20_H__
#define __DS18B20_H__


#include <rthw.h>
#include <rtthread.h>

#define CONVERT_START 0x44 /* 开启转换*/
#define SKIP_Rom      0xCC /* 跳过读取64位序列号，只用于单挂*/
#define SCRATCHPAD    0xBE /* 读暂存寄存器*/



extern rt_device_t rt_ds18b20_set_device(const char *name);

#endif /* end of include guard: __DS18B20_H__ */
